package com.study.designpattern.decorator;

/**
 * <p>具体装饰者1</p>
 *
 * @author chentao
 * @version v 0.1 2022/9/7 14:34
 */
public class ConcreteDecorator1 extends Decorator {
    public ConcreteDecorator1(Component component) {
        super(component);
    }
    private void method1(){
        System.out.println("ConcreteDecorator1-method1");
    }
    public void operate(){
        this.method1();
        super.operate();
    }
}
